<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script type="text/javascript" src="https://lib.baomitu.com/vue/2.6.10/vue.min.js"></script>
</head>
<body>
    <div id="app">
        <input :value="person.name" @input="changeName($event)">
        <input :value="person.age" @input="changeAge($event)">
        {{person}}
    </div>
    <script type="text/javascript">
    var app = new Vue({
        el: '#app',
        data:{
            person:{name:"ray",age:19}
        },
        methods:{
            changeName:function(e){
                this.person.name = e.target.value;
            },
            changeAge:function(e){
                this.person.age = e.target.value;
            },
        }
    })
    </script>
</body>
</html>